package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Report;
import com.net.tkc.pro.impl.ReportImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReportService{
    @Resource
    ReportImpl reportImpl;

    public int addReport(Report Report) {
        return reportImpl.addReport(Report);
    }

    public int upReport(int state,int id) {
        return reportImpl.upReport(state, id);
    }

    public List<Report> getReportList(int userfrom) {
        return reportImpl.getReportList(userfrom);
    }

    public List<Report> getReportList2(int userto) {
        return reportImpl.getReportList2(userto);
    }
}
